﻿using IBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Models;

namespace WebAPIUI.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class MemberController : ControllerBase
    {
        public MemberController(IMemberBLL bLL)
        {
            BLL = bLL;
        }

        public IMemberBLL BLL { get; }

        [HttpGet]
        public Member Login(string name, string pwd)
        {
           return BLL.Login(name, pwd);
        }
    }
}
